﻿Public Class Profile
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.Params("UserName") = User.Identity.Name Then
            Editbtn.Visible = True
        Else
            Editbtn.Visible = False
        End If

    End Sub

   
    Protected Sub Editbtn_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Editbtn.Click
        Response.Redirect("EditProfile.aspx")
    End Sub

    Protected Sub usrprobtn_Click(ByVal sender As Object, ByVal e As EventArgs) Handles usrprobtn.Click
        GridView2.Visible = True
    End Sub
End Class